package com.neusoft.service.impl;

import com.neusoft.mapper.MedicalTechnologyMapper;
import com.neusoft.service.MedicalTechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MedicalTechnologyServiceImpl implements MedicalTechnologyService {

   @Autowired
   MedicalTechnologyMapper medicalTechnologyMapper;

    @Override
    public List<Map<String, Object>> searchMedicalTechnology(String techCode, String techName) {
        return medicalTechnologyMapper.selectMedicalTechnologyByCondition(techCode,techName);
    }
    @Override
    public List<Map<String, Object>> getMedicalTechnology(Integer registerId) {
        return medicalTechnologyMapper.selectInMtAndCr(registerId);
    }

    @Override
    public List<Map<String, Object>> getCheckMedicalTechnology(Integer registerId) {
        return medicalTechnologyMapper.selectInMtAndCr(registerId);
    }

    @Override
    public List<Map<String, Object>> getInspectionMedicalTechnology(Integer registerId) {
        return medicalTechnologyMapper.selectInspectionMedical(registerId);
    }

    @Override
    public List<Map<String, Object>> getDisposalMedicalTechnology(Integer registerId) {
        return medicalTechnologyMapper.selectDisposalMedical(registerId);
    }

    @Override
    public List<Map<String, Object>> searchMedicalTechnologyjy(String techCode, String techName) {
        return medicalTechnologyMapper.selectMedicalTechnologyByConditionjy(techCode,techName);
    }

    @Override
    public List<Map<String, Object>> searchMedicalTechnologycc(String techCode, String techName) {
        return medicalTechnologyMapper.selectMedicalTechnologyByConditioncc(techCode,techName);
    }
}
